<?php 
$rand = uniqid();
if(!$review){
?>
<p id="videoplayer_<?=$rand?>">Please install the Flash Plugin</p>
<script type="text/javascript">
  var flashvars = { file:'<?=$src?>',autostart:'false' };
  var params = { allowfullscreen:'true', allowscriptaccess:'always' };
  var attributes = { id:'videoplayer<?=$rand?>', name:'videoplayer<?=$rand?>' };

  swfobject.embedSWF(root+'static/js/admin/player.swf','videoplayer_<?=$rand?>','<?=$file_width?>','<?=$file_height?>','9.0.115','false',
    flashvars, params, attributes);
</script>
<?php 
} else {
?>
<a href="#videoplayer_container<?=$rand?>" rel="video_<?=$rand?>" class="video-fancy" >Play Video</a>
<div style="display: none">
	<div id="videoplayer_container<?=$rand?>">
		<p id="videoplayer_<?=$rand?>">Please install the Flash Plugin</p>

		<script type="text/javascript">
		  var flashvars = { file:'<?=$src?>',autostart:'false' };
		  var params = { allowfullscreen:'true', allowscriptaccess:'always' };
		  var attributes = { id:'video_<?=$rand?>', name:'video_<?=$rand?>' };

		  swfobject.embedSWF(root+'static/js/admin/player.swf','videoplayer_<?=$rand?>','640','480','9.0.115','false',
			flashvars, params, attributes);

		</script>
	</div>
</div>
<?php 
}
?>